﻿using System;
using System.ComponentModel.DataAnnotations;
using EasyMvc.Utility;

namespace EasyMvc.Models
{
    [Table("DocumentPost")]
    public partial class DocumentPost
    {
        public int Id { get; set; }
        [StringLength(200)]
        [Required]
        public string Content { get; set; }
        public DateTime AddTime { get; set; }
        public int Gender { get; set; }

        public int DocumentId { get; set; }
        public virtual Document Document { get; set; }
    }

    public enum EnumGender
    {
        [EnumTitle("男")]
        Man = 1,

        [EnumTitle("女")]
        Woman = 2
    }
}
